package java_test.io;

import java.io.File;

public class copyFile {
    public static void main(String[] args) {
        //copy("", "");
    }

    public static void copy(File srcFile, File destFile) {
        File[] files = srcFile.listFiles();
        File newFile = new File(srcFile.getName(), destFile.getName());
        for (File file : files) {
            if (file.isFile()) {

            } else {
                copy(file, destFile);
            }
        }
    }
}
